package com.mzj.saas.rent;

import com.haixiaoke.saas.repository.core.AjaxResult;
import com.haixiaoke.saas.repository.core.BaseController;
import com.haixiaoke.saas.repository.pojo.Banner;
import com.haixiaoke.saas.repository.service.IBannerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 首页轮播图
 */
@RestController
@RequestMapping("/home/banner")
public class BannerController extends BaseController {

    @Autowired
    private IBannerService bannerService;

    /**
     * 查询轮播列表
     */
    @GetMapping("/list")
    public AjaxResult list(Banner banner) {
        return success(bannerService.selectBannerList(banner));
    }


}
